package com.enba.rbacadmin.module.auth.controller.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 用户表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@ApiModel(value = "UserPageResp", description = "用户表列表查询-响应")
public class UserPageResp implements Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;

  @ApiModelProperty("用户编码")
  private String userCode;

  @ApiModelProperty("用户名")
  private String username;

  @ApiModelProperty("手机号")
  private String mobile;

  @ApiModelProperty("邮箱")
  private String email;

  @ApiModelProperty("部门id")
  private Long deptId;

  @ApiModelProperty("部门名称")
  private String deptName;

  @ApiModelProperty("单位id")
  private Long orgId;

  @ApiModelProperty("单位名称")
  private String orgName;

  @ApiModelProperty("角色名称")
  private String roleName;

  @ApiModelProperty("状态（0：可用 1：禁用）")
  private Integer status;

  @ApiModelProperty("创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime updateTime;
}
